<?php
/**
 * Created by PhpStorm.
 * User: Yangxufeng
 * Date: 2018/8/25
 * Time: 11:12
 */

namespace app\index\validate;

class ThemeValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:10',
        'description' => 'require|max:30',
        'topic_img_id' => 'isPositiveInt',
        'head_img_id' => 'isPositiveInt',
        'status' => 'require|zeroOrOne',
        'primary_key' => 'isPositiveInt'
    ];
}